package com.guanjian.netty.learning.netty;

import com.guanjian.netty.learning.netty.handler.EchoServerSimpleHandler;
import io.netty.channel.ChannelHandler;

/**
 * created by guanjian on 2019/10/9 13:53
 */
public class EchoServer {
    public static void main(String[] args) {
       int port = 8080;
        ChannelHandler channelHandler = new EchoServerSimpleHandler();
        new Thread(new EchoServerExecutor(port,channelHandler)).start();
    }
}
